cmake_minimum_required(VERSION 3.20)
project(netlink_multiple_adapters)

# Set the CPP standard, we use C++14 here
set(CMAKE_CXX_STANDARD 14)

# Add the pathes of C/C++ headers
include_directories(
        ${PROJECT_SOURCE_DIR}/bfee
        ${PROJECT_SOURCE_DIR}/linux_nl
        ${PROJECT_SOURCE_DIR}/src
)

# Allow to include all necessary files
file(GLOB all_SRCS
        "${PROJECT_SOURCE_DIR}/bfee/*.h"
        "${PROJECT_SOURCE_DIR}/linux_nl/*.hpp"
        "${PROJECT_SOURCE_DIR}/src/*.cpp"
        "${PROJECT_SOURCE_DIR}/src/*.c"
        )

add_executable(netlink_multiple_adapters ${all_SRCS})
